<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>发改局</title>

  <!-- Google Font: Source Sans Pro -->
  <link rel="stylesheet"
        href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
  <!-- Font Awesome Icons -->
  <link rel="stylesheet" href="../plugins/fontawesome-free/css/all.min.css">
  <!-- IonIcons -->
  <link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
  <!-- Theme style -->
  <link rel="stylesheet" href="../dist/css/adminlte.min.css">
  <!-- Ekko Lightbox -->
  <link rel="stylesheet" href="../plugins/ekko-lightbox/ekko-lightbox.css">

</head>


<body class="hold-transition sidebar-mini">
<div class="wrapper">

  <!-- 主内容容器 -->
  <div class="content-wrapper">
    <!-- 容器头标题 -->
    <div class="content-header">
      <div class="container-fluid">
        <div class="row mb-2">
          <div class="col-sm-6">
            <h1 class="m-0">添加企业</h1>
          </div>

          <div class="col-sm-6">
            <ol class="breadcrumb float-sm-right">
              <li class="breadcrumb-item"><a href="#">首页</a></li>
              <li class="breadcrumb-item active">添加企业</li>
            </ol>
          </div>

        </div>

      </div>

    </div>


    <!-- 主题内容正文 -->
    <div class="content">
      <div class="container-fluid">
        <div class="row">
          <div class="col-lg-6">


            <!-- 添加div -->
            <div class="card card-primary">
              <!-- 卡片头部 -->
              <div class="card-header">
                <h3 class="card-title">添加企业</h3>
              </div>
              <!--卡片头部结束 -->
              <!-- 表单开始 -->
              <form>
                <div class="card-body">

                  <div class="form-group">
                    <label for="exampleInputEmail1">企业名称</label>
                    <input type="text" class="form-control" id="exampleInputEmail1" placeholder="企业名称">
                  </div>

                  <div class="form-check">
                    <input type="checkbox" class="form-check-input" id="subEn">
                    <label class="form-check-label" for="exampleCheck1">是否为子企业</label>
                  </div>

                  <div class="form-group">
                    <label>父企业选择</label>
                    <select class="form-control" id="parentEn" disabled>
                      <option>后英集团</option>
                    </select>
                  </div>

                  <div class="form-group">
                    <label for="exampleInputPassword1">建设地点</label>
                    <input type="password" class="form-control" id="exampleInputPassword1" placeholder="建设地点">
                  </div>

                  <div class="form-group">
                    <label for="exampleInputEmail1">所属行业</label>
                    <input type="text" class="form-control" id="exampleInputEmail2" placeholder="所属行业">
                  </div>

                  <div class="form-group">
                    <label for="exampleInputEmail1">总投资</label>
                    <input type="number" class="form-control" id="exampleInputEmail1" placeholder="总投资">
                  </div>

                  <div class="form-group">
                    <label for="exampleInputFile">上传企业执照</label>

                    <div class="input-group">
                      <div class="row">
                        <div class="col-lg-12">
                          <a
                            href=""
                            class="thumbnail" data-toggle="lightbox" data-title="图片预览">
                            <img
                              src=""
                              class="img-fluid mb-2" alt="营业执照"
                              style="border: 1px solid black; padding: 10px; width: 180px;"/>
                          </a>
                        </div>
                      </div>
                    </div>

                    <div class="input-group" style="margin: 7px;">
                      <div class="row">
                        <div class="col-lg-12">
                          <div class="input-file">
                            <input type="file" class="custom-file-input" id="exampleInputFile">
                            <label class="custom-file-label" for="exampleInputFile">请选择</label>
                          </div>
                        </div>
                      </div>
                    </div>

                  </div>

                  <!-- 复选框 -->
                  <div class="form-check">
                    <input type="checkbox" class="form-check-input" id="exampleCheck1">
                    <label class="form-check-label" for="exampleCheck1">是否运营</label>
                  </div>

                </div>

                <!-- 添加按钮 -->
                <div class="card-footer">
                  <button type="submit" class="btn btn-primary">添加</button>
                </div>

              </form>
              <!-- 表单结束 -->
            </div>
            <!-- 卡片结束 -->
          </div>


          <div class="col-lg-6">
          </div>

        </div>

      </div>

    </div>

  </div>


  <!-- Control Sidebar -->
  <aside class="control-sidebar control-sidebar-dark">
    <!-- Control sidebar content goes here -->
  </aside>
  <!-- /.control-sidebar -->

  <!-- 版权信息 -->
  <footer class="main-footer">
    <strong>Copyright &copy; 2021 <a href="http://www.chengzhouyun.com/" target="_blank">ChengZhouYun</a>.</strong> All
    rights reserved.
    <div class="float-right d-none d-sm-inline-block">
      <b>Version</b> 1.0
    </div>
  </footer>
</div>
<!-- ./wrapper -->

<!-- REQUIRED SCRIPTS -->

<!-- jQuery -->
<script src="../plugins/jquery/jquery.min.js"></script>
<!-- Bootstrap -->
<script src="../plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- AdminLTE -->
<script src="../dist/js/adminlte.js"></script>

<!-- OPTIONAL SCRIPTS -->
<script src="../plugins/chart.js/Chart.min.js"></script>
<!-- AdminLTE for demo purposes -->
<script src="../dist/js/demo.js"></script>
<!-- Ekko Lightbox -->
<script src="../plugins/ekko-lightbox/ekko-lightbox.min.js"></script>
<!-- Filterizr-->
<script src="../plugins/filterizr/jquery.filterizr.min.js"></script>

<!-- AdminLTE dashboard demo (This is only for demo purposes) -->
<script src="../dist/js/pages/dashboard3.js"></script>
</body>

<script>
  $(function () {
    // 是否为子企业切换点击事件注册
    $("#subEn").on("click", function () {

      var checked = $("#subEn").prop("checked");
      if (checked) {
        $("#parentEn").removeAttr("disabled")
      } else {
        $("#parentEn").attr("disabled", "disabled")
      }

    });

    // 营业执照图片预览处理
    $(document).on('click', '[data-toggle="lightbox"]', function (event) {
      event.preventDefault();
      $(this).ekkoLightbox({
        alwaysShowClose: true
      });
    });

    $('.filter-container').filterizr({gutterPixels: 3});
    $('.btn[data-filter]').on('click', function () {
      $('.btn[data-filter]').removeClass('active');
      $(this).addClass('active');
    });
  })
</script>

</html>
